package com.example.orderminiappapi.dao;

import com.example.orderminiappapi.bean.AddOrUpdate;
import com.example.orderminiappapi.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserAddressDao {
    List<String> findAllUsersAddress(User user);

    int addAddress(AddOrUpdate addOrUpdate);        // 添加地址信息

    int updateAddress(AddOrUpdate addOrUpdate);     // 修改地址信息

    int deleteAddress(AddOrUpdate addOrUpdate);     // 删除地址信息

    int changeCommonAddress1(AddOrUpdate addOrUpdate);  // 设置默认地址

    int changeCommonAddress2(AddOrUpdate addOrUpdate);  // 设置默认地址

}
